package com.hk.pinda.authority.config;

import com.hk.common.handler.DefaultGlobalExceptionHandler;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 *  定义全局异常处理类
 *
 *
 *
 */
@ResponseBody
@Configuration
@ControllerAdvice(annotations = {RestController.class, Controller.class})
public class ExceptionConfiguration  extends DefaultGlobalExceptionHandler {


}
